home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d20 / sqsh_100.arc / SSTAT.ARC / SSTAT.H < prev    next >
C/C++ Source or Header  |  1991-11-06  |  1KB  |  58 lines

  1. #include "msgapi.h"
  2. #include "typedefs.h"
  3.  
  4.  
  5. /* Structure of SQUISH.STA:
  6.  
  7.    {
  8.      struct _areahdr ah;              (area tossed/scanned to)
  9.      struct _nodrhdr nh[ah.n_nodes];  (one record for each node in area)
  10.    }
  11.    ...
  12. */
  13.  
  14. /* Statistics for this area. Used internally by sstat. */
  15.  
  16. struct _statarea
  17. {
  18.   dword in_msgs;                /* Total # of msgs received in this area    */
  19.   dword in_bytes;               /* Total # of bytes received in this area   */
  20. };
  21.  
  22. /* Area header structure, as written to the disk */
  23.  
  24. struct _areahdr
  25. {
  26.   #define AH_TAGLEN 30
  27.   char tag[AH_TAGLEN];
  28.   dword in_msgs;
  29.   dword in_bytes;
  30.   word n_nodes;
  31. };
  32.  
  33.  
  34. /* Linked list of statistics information which parallels the linked         *
  35.  * list of nodes to scan, 'scan[]'.  Used internally by sstat               */
  36.  
  37. struct _statlist
  38. {
  39.   NETADDR node;                 /* Address of this node                     */
  40.  
  41.   dword out_msgs;               /* Total # of msgs sent to this node        */
  42.   dword out_bytes;              /* Total # of bytes sent to this node       */
  43.   struct _statlist *next;
  44. };
  45.  
  46. /* Stats information, as written to disk */
  47.  
  48. struct _nodehdr
  49. {
  50.   NETADDR node;                 /* Address of this node                     */
  51.  
  52.   dword out_msgs;               /* Total # of msgs sent to this node        */
  53.   dword out_bytes;              /* Total # of bytes sent to this node       */
  54. };
  55.  
  56.  
  57.  
  58.